package org.aplikator.server.rpc.handler;

import org.aplikator.client.rpc.impl.GetApplication;
import org.aplikator.client.rpc.impl.GetApplicationResponse;
import org.aplikator.server.Context;
import org.aplikator.server.descriptor.Application;
import org.aplikator.server.rpc.CommandHandler;

public class GetApplicationHandler implements CommandHandler<GetApplication, GetApplicationResponse> {

    public GetApplicationResponse execute(GetApplication command, Context ctx) {
        return new GetApplicationResponse(Application.get().getApplicationDTO(ctx));
    }

}
